package com.wicket.okrapp.web.contorller;

import com.wicket.okrapp.biz.service.StatusDataService;
import com.wicket.okrapp.biz.service.dto.req.*;
import com.wicket.okrapp.biz.service.dto.res.*;
import com.wicket.okrapp.common.ro.OkrResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/app/statusData/")
public class StatusDataController {

  @Autowired
  StatusDataService statusDataService;
/**
   * D3执行统一管理批次数据处理(公共)
   */
    @PostMapping("implementUnifiedMgtBatchHandleCom")
    public OkrResult<ImplementUnifiedMgtBatchHandleComRespDto> implementUnifiedMgtBatchHandleCom(@RequestBody @Validated ImplementUnifiedMgtBatchHandleComReqDto reqDTO){
    return OkrResult.success(statusDataService.implementUnifiedMgtBatchHandleCom(reqDTO));
    }
/**
   * D3执行统一管理部门步骤状态处理(公共)
   */
    @PostMapping("implementUnifiedMgtStepStateEtcdiSposeCom")
    public OkrResult<ImplementUnifiedMgtStepStateEtcdiSposeComRespDto> implementUnifiedMgtStepStateEtcdiSposeCom(@RequestBody @Validated ImplementUnifiedMgtStepStateEtcdiSposeComReqDto reqDTO){
    return OkrResult.success(statusDataService.implementUnifiedMgtStepStateEtcdiSposeCom(reqDTO));
    }
/**
   * D3执行中基层部门步骤检查项状态处理(公共)
   */
    @PostMapping("implementMidBasicDeptStepAndCheckItemStateDisposeCom")
    public OkrResult<ImplementMidBasicDeptStepAndCheckItemStateDisposeComRespDto> implementMidBasicDeptStepAndCheckItemStateDisposeCom(@RequestBody @Validated ImplementMidBasicDeptStepAndCheckItemStateDisposeComReqDto reqDTO){
    return OkrResult.success(statusDataService.implementMidBasicDeptStepAndCheckItemStateDisposeCom(reqDTO));
    }
}
